import request from '@/utils/request'

// 查询预案基本信息列表
export function listBase(query) {
  return request({
    url: '/pla/base/list',
    method: 'get',
    params: query
  })
}

export function listBaseNoPage() {
  return request({
    url: '/pla/base/noPage',
    method: 'get'
  })
}

// 查询预案基本信息详细
export function getBase(planid) {
  return request({
    url: '/pla/base/selectByPlanId/' + planid,
    method: 'get'
  })
}

// 新增预案基本信息
export function addBase(data) {
  return request({
    url: '/pla/base/addPlaVo',
    method: 'post',
    data: data
  })
}

// 新增预案基本信息
export function atachQuery(data) {
  return request({
    url: '/com/ComAttach/selectManyAttach',
    method: 'post',
    data: data
  })
}

// 修改预案基本信息
export function updateBase(data) {
  return request({
    url: '/pla/base/updatePlaVo',
    method: 'put',
    data: data
  })
}

// 删除预案基本信息
export function delBase(planid) {
  return request({
    url: '/pla/base/deleteByPlanId/' + planid,
    method: 'delete'
  })
}
